home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / ip / nfs / nfstrace.shar.Z / nfstrace.shar / nfsstuff.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-06  |  1006 b   |  52 lines

  1. #include <sys/types.h>
  2. #include <sys/file.h>
  3.  
  4. #define RFS_NULL        0
  5. #define RFS_GETATTR     1
  6. #define RFS_SETATTR     2
  7. #define RFS_ROOT        3
  8. #define RFS_LOOKUP      4
  9. #define RFS_READLINK    5
  10. #define RFS_READ        6
  11. #define RFS_WRITECACHE  7
  12. #define RFS_WRITE       8
  13. #define RFS_CREATE      9
  14. #define RFS_REMOVE      10
  15. #define RFS_RENAME      11
  16. #define RFS_LINK        12
  17. #define RFS_SYMLINK     13
  18. #define RFS_MKDIR       14
  19. #define RFS_RMDIR       15
  20. #define RFS_READDIR     16
  21. #define RFS_STATFS      17
  22. #define RFS_NPROC       18
  23.  
  24. typedef struct line {
  25.     int op;        /* RFS_* */
  26.     int stat;    /* OK or FAILED */
  27.     char *time;    /* timestamp */
  28.     char *svr;    /* server */
  29.     char *cln;     /* client, (including uid) */
  30.     struct {
  31.         char *handle1;
  32.         char *name1;
  33.         char *handle2;
  34.         char *name2;
  35.         char *uid;
  36.         char *mode;
  37.         char *size;
  38.         char *offset;
  39.         char *count;
  40.     } call;
  41.     struct {
  42.         char *handle;
  43.         char *name;
  44.         char *count;
  45.         char *uid;
  46.         char *mode;
  47.         char *size;
  48.     } reply;
  49. } line;
  50.  
  51. extern line l;
  52.